/* filesize.c - prints size of passwd file */

#include <stdio.h>
#include <sys/stat.h>

int main()
{
	struct stat infobuf;				/* place to store info */
	if (stat("/etc/passwd", &infobuf) == -1)	/* get info */
		perror("/etc/passwd");
	else
		printf("The size of /etc/passwd is %d\n",
				infobuf.st_size);
}
